import request from '@/utils/request'

// 查询任务主列表
export function listJob(query) {
  return request({
    url: '/job/job/list',
    method: 'get',
    params: query
  })
}

// 查询任务主详细
export function getJob(id) {
  return request({
    url: '/job/job/' + id,
    method: 'get'
  })
}

// 新增任务主
export function addJob(data) {
  return request({
    url: '/job/job',
    method: 'post',
    data: data
  })
}

// 修改任务主
export function updateJob(data) {
  return request({
    url: '/job/job',
    method: 'put',
    data: data
  })
}

// 删除任务主
export function delJob(id) {
  return request({
    url: '/job/job/' + id,
    method: 'delete'
  })
}

// 导出任务主
export function exportJob(query) {
  return request({
    url: '/job/job/export',
    method: 'get',
    params: query
  })
}

// 打标人员信息
export function getJobPerson(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}
